package com.woniuxy.light_smart.mapper;

import com.woniuxy.light_smart.entity.Area;
import com.woniuxy.light_smart.entity.Role;
import com.woniuxy.light_smart.entity.UserRole;

import java.util.List;

import java.util.List;

import java.util.List;

/**
* @author asus
* @description 针对表【role】的数据库操作Mapper
* @createDate 2022-12-06 15:45:42
* @Entity com.woniuxy.light_smart.entity.Role
*/
public interface RoleMapper {
    List<Role> selectAll();
    int deleteByPrimaryKey(Long id);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);


    List<UserRole>  selectAllRole();

    List<Integer> selectRidByUid(Long id);

}
